package com.gpframework.module.wages.service.impl;

import com.gpframework.module.wages.domain.vo.SalarySummaryVo;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gpframework.module.wages.mapper.GzTransferMapper;
import com.gpframework.module.wages.domain.GzTransfer;
import com.gpframework.module.wages.domain.vo.GzTransferVo;
import com.gpframework.module.wages.service.IGzTransferService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;

import java.util.Date;
import java.util.List;
/**
 * @ClassName GzTransfer
 * @Author gpframework
 * @Date 2024-01-22
 * @Version 1.0.0
 * @Description 中转人员工资Service业务层处理
 */
@Service
public class GzTransferServiceImpl extends ServiceImpl<GzTransferMapper, GzTransfer> implements IGzTransferService {

    /**
     * @Description 查询列表返回VO 用于返回给前端的列表接口
     * @Author gpframework
     * @Date 2024-01-22
     * @Param [lqw]
     * @Return List<GzTransferVo>
     */
    @Override
    public List<GzTransferVo> listVo(QueryWrapper<GzTransfer> lqw) {
        return this.baseMapper.listVo(lqw);
    }

    /**
     * @Description 通过查询详情VO 用于返回给前端的列详情接口
     * @Author gpframework
     * @Date 2024-01-22
     * @Param [id]
     * @Return GzTransferVo
     */
    @Override
    public GzTransferVo getVoById(Long id) {
        return this.baseMapper.getVo(id);
    }

    @Override
    public List<SalarySummaryVo> list(String month, String deptName) {
        return this.baseMapper.list(month, deptName);

    }

    @Override
    public void delelteMonth(Date yearMonth) {
        this.baseMapper.delelteMonth(yearMonth);
    }

    @Override
    public List<GzTransferVo> listStatistics(QueryWrapper<GzTransfer> lqw) {
        return this.baseMapper.listStatistics(lqw);
    }
}
